﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Information.aspx.cs" Inherits="User_Information_Information" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title> User Information</title>
    <link type="text/css" rel="stylesheet" href="Style.css" />
    <link rel="stylesheet" type="text/css" href="../index/Webshop.css" />
    <link rel="stylesheet" type="text/css" href="../index/menubar.css" />
    <style type="text/css">
        .auto-style13 {
            text-align: left;
            width: 103px;
            height: 25px;
        }
        .auto-style14 {
            text-align: left;
            width: 457px;
            height: 25px;
        }
        .auto-style15 {
            text-align: left;
            height: 25px;
        }
        .auto-style16 {
            text-align: left;
            width: 103px;
            height: 41px;
        }
        .auto-style17 {
            text-align: left;
            width: 457px;
            height: 41px;
        }
        .auto-style18 {
            text-align: left;
            height: 41px;
        }
        .auto-style19 {
            text-align: left;
            width: 103px;
            height: 45px;
        }
        .auto-style20 {
            text-align: left;
            width: 457px;
            height: 45px;
        }
        .auto-style21 {
            text-align: left;
            height: 45px;
        }
        .auto-style22 {
            text-align: left;
            width: 457px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">


        <div id="Group">
            
            <img alt="Group2" src="../picture/Group2.png" />
        </div>
        <div id="Login">
                        
            <asp:Button ID="BtnLogin" runat="server" Width="102px" cssclass="login" OnClick="BtnLogin_Click" Text="Log In" Height="34px" />
                            
            <asp:Button ID="BtnLogout" runat="server" CssClass="login" OnClick="BtnLogout_Click1" Text="Log Out" Visible="False" Width="103px" Height="34px" />
                            
            <asp:Button ID="btnRedirect" runat="server" OnClick="btnRedirect_Click" Visible="False" Width="103px" Text="Account" CssClass="logout" Height="34px" />
            
        </div>
       
        <!------------Menubar-------------------------->
        <div id="menubar">
            <ul class="menu">

                <li><a href="../index/index.aspx">Home</a></li>
                <li><a href="../Contact/About us.aspx">Avenger team</a></li>      
                <li><a href="../Product/Product.aspx">Our Product</a>       
                </li>
                <li><a href="../Contact/Contact us.aspx">Contact</a></li>
            </ul>
        </div>
        <!------------end menubar -------------------->
    <div id="all">
        <!-------------header------------------>
        <div id="head">
            <div id="user">
                <img src="user.png" />
            </div>
        </div>
        <!--------------header----------------->
    <div id="tab">

        <table style="width: 100%; height: 300px; margin-left:30px;">
            <tr>
                <td class="auto-style7" colspan="3">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style9" colspan="3">
                    <table style="width:100%; height: 193px;">
                        <tr>
                            <td class="auto-style13">UID: </td>
                            <td class="auto-style14">
                                <asp:TextBox ID="txtUID" runat="server" Width="243px"></asp:TextBox>
                                <asp:Label ID="lblUID" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                            <td class="auto-style15">View info by UID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp;<asp:TextBox ID="txtViewUID" runat="server" Width="173px"></asp:TextBox>
                                &nbsp;
                                <asp:Button ID="btnView" runat="server" OnClick="btnView_Click" Text="View" Width="54px" CssClass="btnViewU" />
                            </td>
                        </tr>
                        <tr>
                            <td class="auto-style11">Username:</td>
                            <td class="auto-style22">
                                <asp:TextBox ID="txtUsername" runat="server" Width="241px"></asp:TextBox>
                                <asp:Label ID="lblUsername" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                            <td class="auto-style10">View info by Username :
                                <asp:TextBox ID="txtViewUser" runat="server" Width="171px"></asp:TextBox>
                                &nbsp;
                                <asp:Button ID="btnViewU" runat="server" OnClick="btnViewU_Click" Text="View" class ="btnViewU" Width="52px"/>
                            </td>
                        </tr>
                        <tr>
                            <td class="auto-style16">Password:</td>
                            <td class="auto-style17">
                                <asp:TextBox ID="txtPassword" runat="server" Width="241px"></asp:TextBox>
                                <asp:Label ID="lblPassword" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                            <td class="auto-style18">
                                <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="Add" class="btnViewU" />
                                <asp:Button ID="btnUpdate" runat="server" OnClick="btnUpdate_Click" Text="Update" CssClass="btnViewU" />
                                <asp:Button ID="btnDelete" runat="server" OnClick="btnDelete_Click" Text="Delete" CssClass="btnViewU" />
                            </td>
                        </tr>
                        <tr>
                            <td class="auto-style19">Access Right:</td>
                            <td class="auto-style20">
                                <asp:DropDownList ID="txtAccessRight" runat="server">
                                    <asp:ListItem>admin</asp:ListItem>
                                    <asp:ListItem>Staff</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td class="auto-style21">
                                <asp:Label ID="Label2" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <asp:GridView ID="tbUser" runat="server" Height="195px" Width="950px" Font-Names="Times New Roman" Font-Overline="False" Font-Size="Medium" style="margin-top: 0px" AutoGenerateDeleteButton="True" AutoGenerateSelectButton="True" OnRowDeleting="tbUser_RowDeleting" OnSelectedIndexChanging="tbUser_SelectedIndexChanging">
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td class="auto-style8"></td>
                <td class="auto-style4"></td>
                <td class="auto-style3"></td>
            </tr>
        </table>

    </div>
        </div>
    </form>
</body>
</html>
